<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <style>
        .box1 {
            width: 100px;
            height: 100px;
            background: red;
            /* 标签隐藏，并且不占位置 */
            display: none;
        }
        .box2 {
            /* width: 100px;
            height: 100px; */
            background: green;
            display: inline;
        }
        .box3 {
            /* width: 100px;
            height: 100px; */
            background: blue;
            /* 使用display: inline 就不能设置宽高 */
            display: inline;
        }
        a {
            /* 霸占一行显示，每一个标签都占一行 */
            display: block;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2">哈哈</div>
    <div class="box3">嘻嘻</div>
    <br>
    <a href="#">我是一个超链接标签</a>
    <a href="#">我是一个超链接标签</a>
</body>
</html>